package com.aaron.gesturehelper.gesturelib;

public abstract class MyInstance {
	long id;
	String label;
	int type;
	
	public MyInstance(long id, String label, int type) {
		this.id = id;
		this.label = label;
		this.type = type;
	}
	
	public static MyInstance createMyInstance(MyGesture gesture, String label) {
		if(gesture.getStrokesCount() == 1) {
			return MySingleInstance.newInstance(gesture, label);
		} else {
			return MyMultipleInstance.newInstance(gesture, label);
		}
	}
	
	public abstract double compareTwoInstance(MyInstance other);
}
